package jgl.vajra.management.part.mine.model;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.part.mine.contract.CarNameContract;
import jgl.vajra.management.widget.manager.RxJavaHttpManager;
import jgl.vajra.management.widget.manager.retrofit.RetrofitJsonManager;

public class CarNameModel extends CarNameContract.Model{
    @Override
    public Observable<List<String>> getCarDefaultName(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getCarDefaultName(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }

    @Override
    public Observable<String> carModifyTitle(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().carModifyTitle(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
